package main

import (
	"fmt"
)

type Person struct {
	id   int
	name string
}

func showPerson(person *Person) {
	person.id = 1
	person.name = "kite"
	fmt.Printf("person: %v\n", person)
}

func main() {
	person := Person{1, "tom"}
	fmt.Printf("person: %v\n", person)
	fmt.Println("-----------")
	showPerson(&person)
	fmt.Println("---------")
	fmt.Printf("person: %v\n", person)
}
